home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWThread / SLThrdGd.h < prev   
Encoding:
Text File  |  1996-09-17  |  1.2 KB  |  51 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                SLThrdGd.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef SLTHRDGD_H
  11. #define SLTHRDGD_H
  12.  
  13. #ifndef FWTHRDGD_H
  14. #include "FWThrdGd.h"
  15. #endif
  16.  
  17. // Export or Import functions for CFM-68K [sfu]
  18.  
  19. #if defined(FW_ODFLIB_IMPORT)
  20. #pragma import on
  21. #elif defined(FW_ODFLIB)
  22. #pragma export on
  23. #endif
  24.  
  25. FW_EXTERN_C_BEGIN
  26.  
  27. void FW_Thread_NoteCreation(FW_ThreadID newlyCreatedThread);
  28. void FW_Thread_NoteTermination(FW_ThreadID threadBeingKilled);
  29.         // Parts call NoteCreation when creating a new thread and 
  30.         // NoteTermination when a thread is being destroyed.
  31.  
  32. #ifdef    FW_BUILD_MAC
  33. void FW_Thread_NoteSwitch(FW_ThreadID aThread, FW_Boolean switchingIn);
  34.         // A thread-using part must call this method when a thread 
  35.         // switch occurs.  The boolean is TRUE when the thread is being
  36.         // switched in, FALSE when the thread is being switched out.
  37. #endif
  38.  
  39.  
  40. FW_EXTERN_C_END
  41.  
  42. // For CFM-68K [sfu]
  43.  
  44. #if defined(FW_ODFLIB_IMPORT)
  45. #pragma import off
  46. #elif defined(FW_ODFLIB)
  47. #pragma export off
  48. #endif
  49.  
  50. #endif
  51.